<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>欢迎访问产品运营互动中心！</title>

		<script src="<s:url value="/script/jquery_last.js"/>"
			type="text/javascript"></script>
		<script src="<s:url value="/script/formValidator.js"/>"
			type="text/javascript" charset="UTF-8"></script>
		<script src="<s:url value="/script/formValidatorRegex.js"/>"
			type="text/javascript" charset="UTF-8"></script>
		<script language="javascript"
			src="<s:url value="/script/DateTimeMask.js"/>" type="text/javascript"></script>

		<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({autotip:true,onerror:function(msg){alert(msg)}});
	$("input:text[name='productDict.productProperty']").formValidator({tipid:"nametip",onshow:"属性名称"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"属性名称不能为空"}});
	$("input:text[name='productDict.keyValue']").formValidator({tipid:"keyvaluetip",onshow:"关键值"}).inputValidator({min:1,empty:"关键值不能为空"});
});
</script>
		<script language="javascript"
			src="<s:url value="/script/ShowProcessBar.js"/>"
			type="text/javascript"></script>

		<link rel="stylesheet" href="<s:url value="/css/style_new.css"/>">
		<link rel="stylesheet" href="<s:url value="/css/validator.css"/>">
		<link href="<s:url value="/images/08_ccxxzx.css"/>" rel="stylesheet"
			type="text/css" />
	</head>
	<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
		<table width="980" border="0" cellspacing="0" cellpadding="0"
			align="center">
			<tr>
				<td>
					<table width="100%" border="0" cellpadding="0" cellspacing="0"
						background="<s:url value="/images/new/gxzl_index_2.gif"/>">
						<tr>
							<td width="20" height="32">
								&nbsp;
							</td>
							<td width="20">
								<img src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
									height="12" />
							</td>
							<td>
								当前位置：产品字典维护
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td background="<s:url value="/images/home_4a.gif"/>">
					<table width="100%" height="400" border="0" cellspacing="0"
						cellpadding="0" align="center" bgcolor="#FFFFFF">
						<tr>
							<td width="240" valign="top" class="leftbg">
								<%@ include file="/commons/include/pref_left.inc"%>
							</td>
							<td valign="top">
								<br>
								<s:form action="/business/productDict/saveProductDict.action"
									namespace="/business/catalog"
									onsubmit="return $.formValidator.pageIsValid('1')"
									method="post">
									<input type="hidden" name="productDict.id"
										value="${productDict.id}">
									<table width="660" align="center" border="0" cellspacing="0"
										cellpadding="0">
										<tr>
											<td height="5">
												<table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab1.gif"/>" width="5" height="5" /></td>
														<td class="tdborderup"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
														<td width="5"><img src="<s:url value="/images/cphdzx_tab2.gif"/>" width="5" height="5" /></td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td class=tdborderleftright>
												<TABLE width="98%" cellSpacing=1 cellPadding=0
													align="center">
													<TR height=30>
														<TD align=left width="10%">
															<input type="submit" IsShowProcessBar="True"
																name="Submit" value="保 存">
															<input type="button" value="返 回"
																onClick="location.href='<s:url value="/business/productDict/listProductDict.action"/>'">
														</TD>
													</TR>
												</table>
												<s:if test="#returnMsg!=null">
													<TABLE width="98%" cellSpacing=1 cellPadding=0
														align="center">
														<TR height=30>
															<TD align=left width="10%">
																<font color="red">${returnMsg}</font>
															</TD>
														</TR>
													</table>
												</s:if>
												<table width="98%" border="0" cellspacing="0"
													cellpadding="7" align="center" class=tablecolor2>
													<tr>
														<td width="19%" bgcolor="D6E3FA">
															<div align="right">
																<font color="red">*</font>名&nbsp;&nbsp;称：
															</div>
														</td>
														<td width="81%">
															<s:textfield name="productDict.productProperty"
																theme="css_xhtml" />
															<div id="nametip" style="width:20px"></div>
														</td>
													</tr>

													<tr style="display:none">
														<td width="19%" bgcolor="D6E3FA">
															<div align="right">
																类&nbsp;&nbsp;&nbsp;型：
															</div>
														</td>
														<td width="81%">
															<s:textfield name="productDict.dataType"
																theme="css_xhtml" value="String" />
														</td>
													</tr>
													<tr>
														<td width="19%" bgcolor="D6E3FA">
															<div align="right">
																<font color="red">*</font>关键值：
															</div>
														</td>
														<td width="81%">
															<s:textfield name="productDict.keyValue"
																theme="css_xhtml" />
															<div id="keyvaluetip" style="width:20px"></div>
														</td>
													</tr>
													<tr>
														<td width="19%" bgcolor="D6E3FA">
															<div align="right">
																描&nbsp;&nbsp;述：
															</div>
														</td>
														<td width="81%">
															<s:textarea name="productDict.description"
																theme="css_xhtml" cols="20" rows="6" />
														</td>
													</tr>
													<input type="hidden" name="productDict.creator"
														value="${productDict.creator}">
													<input type="hidden" name="productDict.begin"
														value="<s:date name="productDict.begin" format="yyyy-MM-dd HH:mm:ss"/>">
													<input type="hidden" name="productDict.end"
														value="<s:date name="productDict.end" format="yyyy-MM-dd HH:mm:ss"/>">
												</table>
											</td>
										</tr>
										<tr>
											<td height="5">
												<table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab3.gif"/>" width="5" height="5" /></td>
														<td class="tdborderbottom"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
														<td width="5"><img src="<s:url value="/images/cphdzx_tab4.gif"/>" width="5" height="5" /></td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
							</td>
						</tr>
					</table>
					</s:form>
	</body>
</html>
<script>
function showTypeDialog(){
     var url="<s:url value='/' escapeAmp='false'/>"+"/xtreecheckbox/selectProduct.jsp?type=radio&date=<%=System.currentTimeMillis()%>";
	 var returnData=window.showModalDialog(url,window,"status:no;dialogWidth:450px;dialogHeight:600px;scroll:yes;");
	 if(returnData){
	 	document.forms[0]["product.pproductName"].value=returnData[1];
	 	document.forms[0]["product.pproduct"].value=returnData[0];
	 }
}
var obj1=document.getElementById("iTR4");
if(obj1){
	obj1.style.backgroundColor="B3DEF4";
}
</script>
